package com.maketing.tender.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.maketing.tender.mapper.UserMapper;
import com.maketing.tender.pojo.User;

import com.maketing.tender.service.UserService;
import com.sun.corba.se.spi.servicecontext.UEInfoServiceContext;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController

public class UserController {

    @Autowired
    private UserService userService;

    Logger logger = LoggerFactory.getLogger(UserController.class);

    @GetMapping("/user")
    public List<User> userController(){

        List<User> users = userService.selectOne();
        return  users;
    }
}
